package cate.common.table.pvp.ladder;

import cate.common.table.ESheet;

public class LadderDailyRwdSheet extends ESheet<LadderDailyRwdRow> {

    @Override
    public String getSheetName() {
        return "天梯争霸每日奖励";
    }


    public String getReward(int rankNo) {
        for (LadderDailyRwdRow row : list) {
            if ((row.end == 0 && rankNo >= row.begin)
                    || (rankNo >= row.begin && rankNo <= row.end)) {
                return row.rewardStr;
            }
        }
        return null;
    }
}
